/** 查询通知公告列表 */
export function listNoticeApi(query: NoticeRecord): Promise<ApiRowsRecord<NoticeRecord[]>> {
  return request({
    url: `system/notice/list`,
    method: 'get',
    params: query
  });
}

/** 查询通知公告详细 */
export function getNoticeApi(id: number): Promise<ApiDataRecord<NoticeRecord>> {
  return request({
    url: `system/notice/${id}`,
    method: 'get'
  });
}

/** 新增通知公告 */
export function addNoticeApi(data: NoticeRecord): Promise<ApiRecord> {
  return request({
    url: "system/notice",
    method: 'post',
    data: data
  });
}

/** 修改通知公告 */
export function updateNoticeApi(data: NoticeRecord): Promise<ApiRecord> {
  return request({
    url: "system/notice",
    method: 'put',
    data: data
  });
}

/** 删除通知公告 */
export function delNoticeApi(id: number[]): Promise<ApiRecord> {
  return request({
    url: `system/notice/${id}`,
    method: 'delete',
  });
}